package com.soda.service;

import java.util.List;

import com.soda.bean.News;
 
import com.soda.bean.Notice;
import com.soda.util.PageInfo;
import com.soda.util.SelectNewsInfo;
import com.soda.util.SelectNoticeInfo;

public interface NewsService {
	 //全查
	News showAllNews(int id);
	//模糊查询+分页
	List<News> getAllNews(SelectNewsInfo sni, PageInfo pi);
	//查询信息有几条
	int getNewsCount(SelectNewsInfo sni);

	//删除
	int deleteById(int id);
	//修改
	
	int updateNews(int id,int recommend, String neirong);
	//增加
	int addNews(News n);
	
	int delAllNews(String[] list);
	

	//详查
	List<News> showNews(int id);
	//导出
	List<News> exportNews(String[] count);
	//修改状态
	int updateStateNews(int newId, int state);
	
 
	 
	
	
	
	
	
	
	
	 

}
